package com.cmas.platform.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.cmas.platform.domain.Post;
import com.cmas.platform.dto.PostDto;
import com.cmas.platform.vo.PostVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author su
 * @Date 2023/5/1 21:44
 */
@Mapper
public interface PostFullMapper extends BaseMapper<PostDto> {

    public List<PostDto> selectPostDtoList(@Param("current") int current,
                                           @Param("size") int size,
                                           @Param(Constants.WRAPPER) QueryWrapper<Post> setQueryWrapper);


    public List<PostDto> selectPostByIdsDtoList(@Param("ids") List<String> ids);

    public PostDto selectPostDto(@Param("id")String id);
}
